package gui;

import javax.swing.*;
import java.awt.*;

public class EquationLabel extends JLabel {
    /**
     * For serialization.
     */
    private static final long serialVersionUID = 1L;

    String equation = "";

    public EquationLabel() {
    }

    public EquationLabel(String Equation) {
        this.equation = Equation;
    }

    public void setEquation(String equation) {
        this.equation = equation;
        this.setFont(new Font("Times New Roman", Font.PLAIN, 14));

        setText("<html><b>" + equation + "</b>");
    }
}
